package javacafe.daoimpl;

import java.sql.SQLException;
import java.util.List;

import javacafe.dao.BoardDAO;
import javacafe.dto.studybbs.StudyPostDTO;
import javacafe.ibatis.SqlDaoSuport;

public class BoardDAOImple extends SqlDaoSuport implements BoardDAO {
	
	@Override
	public List<StudyPostDTO> getStudyBoardList(String boardname) {
		List<StudyPostDTO> list = null;
		try {
			list =  (List<StudyPostDTO>)getSqlMapper().queryForList("getStudyPostList", boardname);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		
		return list;
	}

	@Override
	public List<StudyPostDTO> getStudyBoardList(int boardname) {
		// TODO Auto-generated method stub
		return null;
	}
}
